Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate PDFs from Power Test Records #594

Merged
merged 7 commits into from
Oct 15, 2024

Conversation

jb3
Copy link
Member

@jb3 jb3 commented Oct 12, 2024

Feature

Allows for the export of PDFs, similar to how Risk Assessments can be exported, but for power test records from events.

This generates a two page document, the first page comprising of high level event detail such as:

  • Power MIC
  • Event date
  • Power Test time
  • Venue
  • Generator use (from RA)
  • Powering other companies (from RA)

The second page contains all the inputted values from the power test plan in a format similar to the HTML version.

image

Review status of the results is reflected on the first page, the table containing worst points scales depending on how many are inputted/stored.

Future Improvements

Speaking with Nick today in future it might be nice to expand power test records more with:

  • Tracking the user who created the power test record/adding a field to select the crew member who performed the tests
  • Allowing for multiple power test records to be attached to one event (e.g. for different venues/electrical environments)

Miscellaneous

This PR also fixes the fact that exported PDFs never had a total number of pages, it would always say something like "Page 2 of 0", adding a <namedString> fixes this, we previously had a reference to this namedString but it didn't exist so the default of 0 was used.

image

nickw29
nickw29 previously approved these changes Oct 13, 2024
Copy link

@nickw29 nickw29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks @jb3 , I think maybe there's a bit of discussion to be had about what else we think would be useful to show and refine the content as we probably also want stuff like event size on there but it's an excellent starting point

@jb3
Copy link
Member Author

jb3 commented Oct 13, 2024

Thanks for the review. Will address lint failures shortly.

@jb3
Copy link
Member Author

jb3 commented Oct 14, 2024

CI issues now seem to be that the CI builder is trying to setup 3.9 whilst the Pipfile mandates 3.10, I can look at this in another PR but the linting issues are passing locally.

@jerbzz
Copy link
Contributor

jerbzz commented Oct 14, 2024

Ugh the CI and tests have been broken for a while. If you have the time and energy to look at it that would be awesome 🤩

@nickw29 nickw29 merged commit 6c8eb38 into nottinghamtec:master Oct 15, 2024
1 check failed
nickw29 added a commit that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants